package com.atguigu.Spring5;

/**
 * @Author xiao hu die
 * @Date 2022/3/28 19:15
 * @Version 1.0
 */
public class Order {
 private String name;
 private Integer id;

 public Order(String name, Integer id) {
  this.name = name;
  this.id = id;
  System.out.println("Order的有参构造");
 }

 public Order() {
  System.out.println("Order的无参构造");
 }

 public String getName() {
  return name;
 }

 public void setName(String name) {
  this.name = name;
 }

 public Integer getId() {
  return id;
 }

 public void setId(Integer id) {
  this.id = id;
 }
}
